package com.czxy.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class City {

    @TableField(value = "id")
    private String id;
    @TableField(value = "city_name")
    private String cityName;
    @TableField(value = "parent_id")
    private String parentId;

    @TableField(exist = false)
    private List<City> children;

}
